package com.cxy;

import com.cxy.common.boot.CxyCloudApplication;
import com.cxy.common.boot.CxyCloudBootstrap;
import io.gitee.caoxiaoyu97.log.CxyLoggerUtils;
import lombok.extern.slf4j.Slf4j;
import org.mybatis.spring.annotation.MapperScan;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.stereotype.Service;

import java.lang.management.ManagementFactory;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
import java.util.concurrent.ScheduledExecutorService;

/*********************************************************
 * 文件名称：${NAME}.java
 * 系统名称：CXY自定义系统
 * 模块名称：com.cxy
 * 功能说明：${TODO}
 * 开发人员 @author：caoxy31978
 * 开发时间 @date：${DATE} ${TIME}
 * 修改记录：程序版本  修改日期  修改人员  修改单号  修改说明
 *********************************************************/
// @CxyCloudApplication
@SpringBootApplication
@Slf4j
@Service
public class Main {

    @Value("${a.b.c.d:xxx}")
    private String testParam;

    @Autowired
    LogProxyServiceTest serviceTest;
    public static void main(String[] args) {
        // ConfigurableApplicationContext app = CxyCloudBootstrap.run(Main.class, args);
        try {
            ConfigurableApplicationContext app = SpringApplication.run(Main.class, args);
        }catch (Exception e){
            e.printStackTrace();
        }
        log.error("完啦");
        System.out.println("111");
    }
    public void test(){
        serviceTest.logtest();
    }
}